<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询员工信息</title>
    <link rel="stylesheet" href="{{ url_for('employee.static', filename='css/bootstrap.min.css') }}">
    <script src="{{ url_for('employee.static', filename='js/employee.js') }}"></script>
</head>
<body>
<div class="container">
    <div>
        <h3 class="page-header">查询员工信息</h3>
    </div>
    <table class="table table-striped text-center table-hover" border="0">
        <thead>
        <tr>
            <th class="text-center">员工账号</th>
            <th class="text-center">员工密码</th>
            <th class="text-center">真实姓名</th>
            <th class="text-center">出生日期</th>
            <th class="text-center">员工工资</th>
            <th class="text-center">手机号码</th>
            <th class="text-center">编辑操作</th>
        </tr>
        </thead>
        <tbody>
        {% for employee in employee_list %}
        <tr>
            <td>{{ employee.uname }}</td>
            <td>{{ employee.upwd }}</td>
            <td>{{ employee.truename }}</td>
            <td>{{ employee.birth }}</td>
            <td>{{ employee.salary }}</td>
            <td>{{ employee.mobile }}</td>
            <td>
                <input type="button" class="btn btn-primary btnAdd" value="添加员工信息"
                       onclick="btnClick({{ employee.uid }}, 0)"/>
                <input type="button" class="btn btn-success btnEdt" value="修改员工信息"
                       onclick="btnClick({{ employee.uid }}, 1)"/>
                <input type="button" class="btn btn-danger btnDel" value="删除员工信息"
                       onclick="btnClick({{ employee.uid }}, 2, '{{ employee.truename }}' )"/>
            </td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
</body>
</html>